﻿namespace ClassyBlog.Infrastructure
{
    using MarkdownDeep;

    public class MarkdownFormatter : Formatter
    {
        public MarkdownFormatter() :
            base(new[] { "md", "mkd", "mkdn", "mdn", "mdown", "markdown" })
        {
        }

        public override string Format(string value)
        {
            var markdown = new Markdown();

            var formattedValue = markdown.Transform(value);

            return formattedValue;
        }
    }
}